﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeBehind="ListSP.aspx.cs" Inherits="TemplateH4.ListSP" MasterPageFile="~/Site1.Master" %>




<%@ Register src="UserControl/MenuLoaiSP.ascx" tagname="MenuLoaiSP" tagprefix="uc3" %>



<%@ Register src="UserControl/TimKiemSanPham.ascx" tagname="TimKiemSanPham" tagprefix="uc1" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="css/SanPham.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style2
        {
            height: 78px;
        }
        .style3
        {
            height: 376px;
        }
        .style4
        {
            height: 372px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
   
    <div>
    
        <div id="left-column">
        <div id="nav">

            <ul>
            <uc3:MenuLoaiSP ID="MenuLoaiSP1" runat="server" />
            </ul>
            
            <div style="margin-top:50px" >
                <asp:ScriptManager ID="ScriptManager1" runat="server">
                </asp:ScriptManager>
               
               
                
           
           
                <uc1:TimKiemSanPham ID="TimKiemSanPham1" runat="server" />
               
               
                
           
           
             </div>
            
        </div>
        
         </div>
         
         
    <div id="right-column">
      
    <!-- box begin -->
		<div class="box">
					<div class="left-top-corner png"><div class="right-top-corner png"><div class="border-top png"></div></div></div>
					<div class="border-left png">
						<div class="border-right png">
							<div class="inside png">
        <h2>
            <asp:Label ID="lbTenDS" runat="server" Text="Label"></asp:Label>
        </h2>


            <asp:ListView ID="LstSP" runat="server" DataKeyNames="MaSanPham" 
                GroupItemCount="3" onitemdatabound="LstSP_ItemDataBound" 
                EnableTheming="True">
                <EmptyItemTemplate>
                    <td id="Td1" runat="server" />
                    </EmptyItemTemplate>
                    
                    <ItemTemplate>
                        <td id="Td2" runat="server" 
                            style=" border-width:1px;  padding:0px 2px 30px 2px " 
                            class="style4">
                            <div style="border: solid 0 #060">
                            <table  cellspacing="5px" style="height: 327px; width: 200px">
                                <tr >
                                    <td  align="center">
                                    <asp:HyperLink 
                                                    ID="HyperLink1" runat="server" Font-Size="Large" 
                                                    NavigateUrl='<%# "~/ChiTietSanPham.aspx?IdSP=" + Eval("MaSanPham") %>' 
                                                    Text='<%# Eval("TenSanPham") %>' Font-Underline="False"></asp:HyperLink>
                                        <br />
                                        <br />
                                        <asp:Image ID="imgSP" runat="server" Height="129px" Width="145px" 
                                            AlternateText='<%# Eval("HinhSanPham.FirstNode.Value") %>' 
                                            ImageUrl='<%# Eval("HinhSanPham.FirstNode.Value") %>' 
                                            BorderColor="#9999FF" />
                                        <br />
                                        <asp:Label ID="Label5" runat="server" Text="Giá:" Font-Bold="True" 
                                            Font-Size="Small" ForeColor="#990000" ></asp:Label>
                                        <asp:Label ID="lbGia" runat="server" Font-Bold="True" Font-Size="Medium" 
                                            ForeColor="Red" Text='<%# Eval("DonGia","{0:0,##0} VND") %>'></asp:Label>
                                        <br />
                                        <asp:Label ID="Label7" runat="server" Font-Bold="True" Font-Size="Small" 
                                            Text="Điểm:" ForeColor="#990000" ></asp:Label>
                                        <asp:Label ID="lbDiem" runat="server" Font-Bold="False" Font-Italic="True" 
                                            Font-Size="Small" ></asp:Label>
                                        &nbsp;&nbsp;
                                        <asp:Label ID="Label8" runat="server" Font-Bold="True" Font-Size="Small" 
                                            Text="Số NX:" ForeColor="#990000"></asp:Label>
                                        <asp:Label ID="lbNX" runat="server" Font-Bold="False" Font-Italic="True" 
                                            Font-Size="Small" 
                                            Text='<%# Eval("DonGia","{0:0,##0} VND") %>'></asp:Label>
                                        <br />
                                    </td>
                                    
                                </tr>
                                
                                <tr>
                            <td align="left" valign="top" style="padding: 0px 0px 0px 5px;" class="style2">
                                                    <asp:Label ID="Label1" runat="server" Text="Nhà SX:" Font-Bold="True" 
                                                        Font-Size="Small" ForeColor="#990000"></asp:Label>
                                                    <asp:HyperLink ID="HyperLink2" runat="server" 
                                                        Text='<%# Eval("shop_nhasanxuat.TenNhaSanXuat") %>' 
                                                        Font-Names="Times New Roman"></asp:HyperLink>
                                                    <br />
                                                    <asp:Label ID="Label2" runat="server" Text="Tình trạng:" Font-Bold="True" 
                                                        Font-Size="Small" ForeColor="#990000"></asp:Label>
                                                    <asp:Label ID="lbTinhTrang" runat="server" 
                                                        
                                                        Text='<%# Convert.ToInt32(Eval("SoLuongCon"))>0 ? "something" : "KhongCon" %>' 
                                                        Font-Names="Times New Roman"></asp:Label>
                                                    <br />
                                                    <asp:Label ID="Label3" runat="server" Text="KM:" Font-Bold="True" 
                                                        Font-Size="Small" ForeColor="#990000"></asp:Label>
                                                    <asp:Label ID="lbKM" runat="server" Font-Names="Times New Roman"></asp:Label>
                                                    &nbsp;<br />
                                                    <asp:Label ID="Label4" runat="server" Text="Phái:" Font-Bold="True" 
                                                        Font-Size="Small" ForeColor="#990000"></asp:Label>
                                                    <asp:Label ID="lbPhai" runat="server" 
                                                        Text='<%# Convert.ToBoolean(Eval("Phai"))==true?"Nam":"Nữ" %>' 
                                                        Font-Names="Times New Roman"></asp:Label>
                                                    <br />
                                                </td>
                                
                            </tr>
                            
                            </table>    
                            </div>    
                        </td>
                    </ItemTemplate>
  
                    <EmptyDataTemplate>
                        <table id="Table1" runat="server" 
                            style="border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;">
                            <tr>
                                <td>
                                   Không có sản phẩm nào</td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                   
                    <LayoutTemplate>
                        <table id="Table2" runat="server" style="width: 201px">
                            <tr id="Tr1" runat="server">
                                <td id="Td3" runat="server" width="200" class="style3" >
                                    <table ID="groupPlaceholderContainer" runat="server" border="0" 
                                        
                                        style="border: 1px none #999999; border-collapse: collapse; font-family: Verdana, Arial, Helvetica, sans-serif; width: 184px;">
                                        <tr ID="groupPlaceholder" runat="server">
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </LayoutTemplate>
                   
                    <GroupTemplate>
                        <tr ID="itemPlaceholderContainer" runat="server">
                            <td ID="itemPlaceholder" runat="server">
                            </td>
                        </tr>
                    </GroupTemplate>
            
                </asp:ListView>
    
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:EFashionH4ConnectionString %>" 
                    SelectCommand="SELECT * FROM [shop_sanpham]"></asp:SqlDataSource>
    
                <asp:Panel ID="pnFooter" runat="server" BackColor="#7EB4D0" Width="610px">
                    <div align ="center">
                    <asp:DataPager runat="server" PagedControlID="LstSP" PageSize="6" 
                        ID="DataPager1" OnPreRender="DataPaperProducts_PreRender">
                        <Fields>
                            <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                                ShowNextPageButton="False" ShowPreviousPageButton="False" 
                                FirstPageText="Đầu">
                            </asp:NextPreviousPagerField>
                            <asp:NumericPagerField>
                            </asp:NumericPagerField>
                            <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" 
                                ShowNextPageButton="False" ShowPreviousPageButton="False" 
                                LastPageText="Cuối">
                            </asp:NextPreviousPagerField>
                        </Fields>
                    </asp:DataPager>
                    </div> 
                </asp:Panel>
                <br />
            		
						</div>

					</div>
				</div>
				<div class="left-bot-corner png"><div class="right-bot-corner png"><div class="border-bot png"></div></div></div>
			</div>
<!-- box end -->
    
    </div>
    </div>
   

    
    </div>

</asp:Content>
